This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
RE: LotusScript agents without Notes Designer ~Laura Bubresachekjip 14.Feb.03 04:49 PM a Web browser Notes Client 6.0All Platforms
Hi,
there's at least one possibility to merge design elements into a database without using desinger:
Create a new database, copy your agent inside and then create a view there, that shows all documents.
Afterwards, configure the view, so it will also display design elements - you will have to use an agent for that.
Now, you have a database, showing your agent in a view, so your colleagues can simply copy it from this view into another view in their databases.
If you don't know how to make a view display design elements:
Dim db As NotesDatabase
Dim dView As NotesView
Dim dDoc As NotesDocument
Set db = session.currentDatabase
Set dView = db.getview("NAME_OF_YOUR_VIEW")
Set dDoc = db.getdocumentbyunid(dView.universalid)
dDoc.~$FormulaClass = "VALUE"
dDoc.save(true, false)
The important things are:
1. get the view as a document by its UNID
2. set the correct value for $FormulaClass
3. don't edit the view afterwards, or $FormulaClass will be reset
Possible values are (you can combine them by adding values):
DOCUMENTS: "1"
FORMS, SUBFORMS: "4"
VIEWS, FOLDERS and NAVIGATORS: "8"
SHAREDFIELDS: "1024"
AGENTS, SCRIPTLIBS = "512"
DATABASES = "16"
ALL = "32767"
ALLDESIGN = "32766"